#include <cmessage.h>
#include <string.h>
#include <omnetpp.h>
#include "Lt3Message_m.h"

class Starter : public cSimpleModule
{
public:
	~Starter() {};
    virtual void initialize();
    virtual void handleMessage(cMessage *msg);
};

// The module class needs to be registered with OMNeT
Define_Module(Starter);
//----------------------------------------------------------------------------

void Starter::initialize()
{
    // Sending the initial message
	Lt3ApplicationPacket *lt3Packet = new Lt3ApplicationPacket("Start simulation");
    scheduleAt(simTime(), lt3Packet);
}

void Starter::handleMessage(cMessage *msg)
{
	send(msg, "gout$o");
}



